package com.example.mingyue.constant;

/**
 * 声明交换机、队列、以及消息发送的条件
 */
public class MqConstant {

    /**
     * topic交换机可以添加多个条件吗
     */
    public static final String MINGYUE_EXCHANGE = "mingyue.toc";

    /**
     * 监听新增和修改同属一个队列
     */
    public static final String MINGYUE_INSERT_QUEUE = "mingyue.insert.queue";
    /**
     * 监听删除的队列
     */
    public static final String MINGYUE_DELETE_QUEUE = "mingyue.delete.queue";
    /**
     * 新增修改的RoutingKey
     */
    public static final String MINGYUE_INSERT_KEY = "mingyue.insert";
    /**
     * 删除Routing key:
     */
    public static final String MINGYUE_DELETE_KEY = "mingyue.delete";


    /**
     * 监听新增和修改同属一个队列
     */
    public static final String MINGYUE_INSERTPOST_QUEUE = "mingyue.insertpost.queue";
    /**
     * 监听删除的队列
     */
    public static final String MINGYUE_DELETEPOST_QUEUE = "mingyue.deletepost.queue";
    /**
     * 新增帖子 key
     */
    public static final String MINGYUE_INSERTPOST_KEY = "mingyue.insertpost";
    /**
     * 删除帖子 key
     */
    public static final String MINGYUE_DELETEPOST_KEY = "mingyue.deletepost";


}
